/**
 * 2025/01/01 - 2025/12/31
 */
package com.snail.server.iam.menu.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.snail.server.iam.menu.entity.Menu;
import com.snail.server.iam.menu.mapper.MenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zgadmin
 * @date 2025/9/26 18:00
 */
@Service
public class MenuService extends ServiceImpl<MenuMapper, Menu> {

    public List<Menu> list(Long appId) {
        return list(Wrappers.lambdaQuery(Menu.class).eq(Menu::getAppId, appId));
    }

}